package uk.co.richardwkirk.parkrun.android;

import uk.co.richardwkirk.parkrun.geo.Region;

public class ParkrunEventData {

	private static ParkrunEventData theInstance = null;
	
	public static ParkrunEventData getSingleton() {
		if (theInstance == null) {
			theInstance = new ParkrunEventData();
		}
		return theInstance;
	}
	
	Region world = null;
	
	private ParkrunEventData() {
		// Nothing required.
	}

	public void setWorld(Region world) {
		this.world = world;
	}

	public boolean isLoaded() {
		return (world != null);
	}

	public Region getWorld() {
		return world;
	}

}
